
package com.chinacreator.c2etcd;
/**
 * @Author: jack.liang
 **/
public class EtcdChangedEvent {

    public enum Type {
        PUT,
        DELETE,
        UNRECOGNIZED;
    }

    private String key;
    private String value;
    private Type type;

    public EtcdChangedEvent(String key, String value, Type type) {
        this.key = key;
        this.value = value;
        this.type = type;
    }

    public String getValue() {
        return this.value;
    }

    public String getKey() {
        return this.key;
    }

    public Type getType() {
        return type;
    }

}
